package com.example.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.example.mapper.WarrantyClaimDetailsResultMapper;
import com.example.domain.WarrantyClaimDetailsResult;
import com.example.service.IWarrantyClaimDetailsResultService;

/**
 * 保修结果Service业务层处理
 * 
 * @author whj
 * @date 2024-09-14
 */
@Service
public class WarrantyClaimDetailsResultServiceImpl implements IWarrantyClaimDetailsResultService 
{
    @Autowired
    private WarrantyClaimDetailsResultMapper warrantyClaimDetailsResultMapper;

    /**
     * 查询保修结果
     * 
     * @param id 保修结果主键
     * @return 保修结果
     */
    @Override
    public WarrantyClaimDetailsResult selectWarrantyClaimDetailsResultById(Long id)
    {
        return warrantyClaimDetailsResultMapper.selectWarrantyClaimDetailsResultById(id);
    }

    /**
     * 查询保修结果列表
     * 
     * @param warrantyClaimDetailsResult 保修结果
     * @return 保修结果
     */
    @Override
    public List<WarrantyClaimDetailsResult> selectWarrantyClaimDetailsResultList(WarrantyClaimDetailsResult warrantyClaimDetailsResult)
    {
        return warrantyClaimDetailsResultMapper.selectWarrantyClaimDetailsResultList(warrantyClaimDetailsResult);
    }

    /**
     * 新增保修结果
     * 
     * @param warrantyClaimDetailsResult 保修结果
     * @return 结果
     */
    @Override
    public int insertWarrantyClaimDetailsResult(WarrantyClaimDetailsResult warrantyClaimDetailsResult)
    {
        return warrantyClaimDetailsResultMapper.insertWarrantyClaimDetailsResult(warrantyClaimDetailsResult);
    }

    /**
     * 修改保修结果
     * 
     * @param warrantyClaimDetailsResult 保修结果
     * @return 结果
     */
    @Override
    public int updateWarrantyClaimDetailsResult(WarrantyClaimDetailsResult warrantyClaimDetailsResult)
    {
        return warrantyClaimDetailsResultMapper.updateWarrantyClaimDetailsResult(warrantyClaimDetailsResult);
    }

    /**
     * 批量删除保修结果
     * 
     * @param ids 需要删除的保修结果主键
     * @return 结果
     */
    @Override
    public int deleteWarrantyClaimDetailsResultByIds(Long[] ids)
    {
        return warrantyClaimDetailsResultMapper.deleteWarrantyClaimDetailsResultByIds(ids);
    }

    /**
     * 删除保修结果信息
     * 
     * @param id 保修结果主键
     * @return 结果
     */
    @Override
    public int deleteWarrantyClaimDetailsResultById(Long id)
    {
        return warrantyClaimDetailsResultMapper.deleteWarrantyClaimDetailsResultById(id);
    }
}
